package com.my.aslife.module.common;


public class UserIdThreadLocal {

    private static final ThreadLocal<Integer> threadLocal = new ThreadLocal<>();

    public static Integer get() {
        return threadLocal.get();
    }

    public static void save(Integer userId) {
        threadLocal.set(userId);
    }

    public static void remove(){
        threadLocal.remove();
    }
}
